//@author A0105495A
#include "Help.h"

string Help::generateHelp(OperationType helpType) {
	OperationType tempType = helpType;
	switch (tempType) {
	case OperationType::ADD:
		_content = HELP_ADD;
		break;
	case OperationType::DELETE_BY_NUMBER:
		_content = HELP_DELETE;
		break;
	case OperationType::MODIFY:
	    _content = HELP_MODIFY;
		break;
	case OperationType::SEARCH:
		_content = HELP_SEARCH;
		break;
	case OperationType::CLEAR:
		_content = HELP_CLEAR;
		break;
	case OperationType::UNDO:
		_content = HELP_UNDO;
		break;
	case OperationType::CONFIG:
        _content = HELP_CONFIG;
		break;
	case OperationType::MARK:
        _content = HELP_MARK;
		break;
	case OperationType::EXIT:
        _content = HELP_EXIT;
		break;
	case OperationType::SAVEFILE:
        _content = HELP_SAVEFILE;
		break;
	default:
        _content = HELP_DEFAULT;
		break;
	}
		
	return _content;
}

Help& Help::get() {
	static Help newInstance;
	return newInstance;
}
